Skip to content

Commit

Permalink
removed panic from tests
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Deoras <[email protected]>
  • Loading branch information
sdeoras committed Feb 7, 2018
1 parent 28ef730 commit 5b60060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osdconfig/test_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func clusterWatcher(config *ClusterConfig) error {
fmt.Println(string(jb))
if config.ClusterId != "myClusterID" {
return errors.New("expected myClusterID, received " + config.ClusterId)
panic(DataErr)
//panic(DataErr)
}
if config.Driver != "myDriver" {
return errors.New("expected myDriver, receive " + config.Driver)
panic(DataErr)
//panic(DataErr)
}
}
return nil
Expand Down

0 comments on commit 5b60060

Please sign in to comment.