diff options
Diffstat (limited to 'lib/memfs/memfs_test.go')
| -rw-r--r-- | lib/memfs/memfs_test.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go index 86d2cc26..dab393eb 100644 --- a/lib/memfs/memfs_test.go +++ b/lib/memfs/memfs_test.go @@ -12,6 +12,7 @@ import ( "log" "os" "path/filepath" + "slices" "testing" "time" @@ -393,13 +394,7 @@ func TestMemFS_Get(t *testing.T) { continue } - found := false - for _, expCT := range c.expContentType { - if expCT == got.ContentType { - found = true - break - } - } + found := slices.Contains(c.expContentType, got.ContentType) if !found { t.Errorf("expecting one of the Content-Type %v, got %s", c.expContentType, got.ContentType) |
