follow our go code style: error->err

This commit is contained in:
Shiyang Wang
2017-06-13 15:32:30 +08:00
parent a9bf44101b
commit 9a96ff94af
3 changed files with 8 additions and 8 deletions

View File

@@ -24,8 +24,8 @@ func TestSchedulerConfiguratorFailure(t *testing.T) {
sc := &schedulerConfigurator{
// policyfile and algorithm are intentionally undefined.
}
_, error := sc.Create()
if error == nil {
_, err := sc.Create()
if err == nil {
t.Fatalf("Expected error message when creating with incomplete configurator.")
}
}