diff --git a/volume/mounts/lcow_parser_test.go b/volume/mounts/lcow_parser_test.go index 57c45eccaf95c0d99d4de185a1dfbe4fa7bceea0..03ad2e97c4e21cd8d062d472470700d5d14c9081 100644 --- a/volume/mounts/lcow_parser_test.go +++ b/volume/mounts/lcow_parser_test.go @@ -220,7 +220,7 @@ func TestLCOWParseMountRawSplit(t *testing.T) { return } - assert.Check(t, err) + assert.NilError(t, err) assert.Check(t, is.Equal(m.Destination, tc.expDest)) assert.Check(t, is.Equal(m.Source, tc.expSource)) assert.Check(t, is.Equal(m.Name, tc.expName)) diff --git a/volume/mounts/linux_parser_test.go b/volume/mounts/linux_parser_test.go index 2f64d6cc78c9c963cfa247e4d966b8bba84923bb..d4c7a3856e1ab31db75296d9446ce4b123250c79 100644 --- a/volume/mounts/linux_parser_test.go +++ b/volume/mounts/linux_parser_test.go @@ -188,7 +188,7 @@ func TestLinuxParseMountRawSplit(t *testing.T) { return } - assert.Check(t, err) + assert.NilError(t, err) assert.Check(t, is.Equal(m.Destination, tc.expDest)) assert.Check(t, is.Equal(m.Source, tc.expSource)) assert.Check(t, is.Equal(m.Name, tc.expName)) diff --git a/volume/mounts/parser_test.go b/volume/mounts/parser_test.go index 6f9d18a41830b5b6e225e798e9ee5f57a23b6e35..c4af79055ce892339a8750ebf1af5e3284d769b1 100644 --- a/volume/mounts/parser_test.go +++ b/volume/mounts/parser_test.go @@ -82,7 +82,8 @@ func TestParseMountSpec(t *testing.T) { tc := tc t.Run("", func(t *testing.T) { mp, err := parser.ParseMountSpec(tc.input) - assert.Check(t, err) + assert.NilError(t, err) + assert.Check(t, is.Equal(mp.Type, tc.expected.Type)) assert.Check(t, is.Equal(mp.Destination, tc.expected.Destination)) assert.Check(t, is.Equal(mp.Source, tc.expected.Source)) diff --git a/volume/mounts/windows_parser_test.go b/volume/mounts/windows_parser_test.go index e6b5d35b200cef224f0b164a8cc939cad2e16a3b..8490c32e8d8436a41f8ecb55b3749a0351ce49d5 100644 --- a/volume/mounts/windows_parser_test.go +++ b/volume/mounts/windows_parser_test.go @@ -234,7 +234,7 @@ func TestWindowsParseMountRawSplit(t *testing.T) { return } - assert.Check(t, err) + assert.NilError(t, err) assert.Check(t, is.Equal(m.Destination, tc.expDest)) assert.Check(t, is.Equal(m.Source, tc.expSource)) assert.Check(t, is.Equal(m.Name, tc.expName)) diff --git a/volume/service/store_test.go b/volume/service/store_test.go index 120b94a737b14a7829947a6cc19baad023a273ad..d9c7ce26b59b3193f57151d2b1e5b296885ac5d6 100644 --- a/volume/service/store_test.go +++ b/volume/service/store_test.go @@ -379,7 +379,7 @@ func setupTest(t *testing.T) (*VolumeStore, func()) { } s, err := NewStore(dir, volumedrivers.NewStore(nil)) - assert.Check(t, err) + assert.NilError(t, err) return s, func() { s.Shutdown() cleanup()