diff --git a/api/types/maintenance_test.go b/api/types/maintenance_test.go index b49679f813325..5f479b53f9e80 100644 --- a/api/types/maintenance_test.go +++ b/api/types/maintenance_test.go @@ -284,13 +284,13 @@ func TestParseWeekdays(t *testing.T) { name: "Nil slice", input: nil, expect: map[time.Weekday]struct{}{}, - expectError: require.NoError, + expectError: require.Error, }, { name: "Empty slice", input: []string{}, expect: map[time.Weekday]struct{}{}, - expectError: require.NoError, + expectError: require.Error, }, { name: "Few valid days",