Skip to content

Commit

Permalink
Merge pull request #1033 from ZouRui89/mock_fix
Browse files Browse the repository at this point in the history
bugfix: fix logic error in volume create mock test
  • Loading branch information
allencloud authored Apr 2, 2018
2 parents 30c8277 + 8a1377c commit caf4ea8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/volume_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ func TestVolumeCreate(t *testing.T) {
HTTPCli: httpClient,
}

if volume, err := client.VolumeCreate(context.Background(), &types.VolumeCreateConfig{}); err != nil {
volume, err := client.VolumeCreate(context.Background(), &types.VolumeCreateConfig{})
if err != nil {
t.Fatal(err)
assert.Equal(t, volume.Name, "volume-1")
assert.Equal(t, volume.Driver, "local")
}
assert.Equal(t, volume.Name, "volume-1")
assert.Equal(t, volume.Driver, "local")

}

0 comments on commit caf4ea8

Please sign in to comment.