Project

General

Profile

Actions

Idea #7490

closed

[Data Manager] Return errors instead of calling log.Fatal in code that needs to be tested

Added by Brett Smith about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
Keep
Target version:
Start date:
09/10/2015
Due date:
Story points:
1.0

Description

Currently, parts of Data Manager handle some runtime errors by calling log.Fatal(). This practice makes it unnecessarily hard (impossible?) to test the relevant error functions: log.Fatal() causes the whole test suite to exit, rather than failing the current test.

Any offending bits of Data Manager should be fixed at least to the point where tests can demonstrate Data Manager's behavior when faced a network error during startup or while retrieving collections from the API server.


Subtasks 1 (0 open1 closed)

Task #7783: Review branch 7490-datamanager-dont-die-return-errorResolvedRadhika Chippada09/10/2015Actions
Actions

Also available in: Atom PDF