Skip to content

Commit e7e9c27

Browse files
committed
exclude system user db tests from non-linux OSs
Signed-off-by: Danny Kopping <[email protected]>
1 parent 769ae1d commit e7e9c27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/users_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"database/sql"
66
"fmt"
77
"net/http"
8+
"runtime"
89
"slices"
910
"strings"
1011
"testing"
@@ -2423,6 +2424,10 @@ func TestSystemUserBehaviour(t *testing.T) {
24232424
// Setup.
24242425
t.Parallel()
24252426

2427+
if runtime.GOOS != "linux" {
2428+
t.Skip("skipping because non-linux platforms are tricky to run the mock db container on, and there's no platform-dependence on these tests")
2429+
}
2430+
24262431
ctx := testutil.Context(t, testutil.WaitLong)
24272432

24282433
sqlDB := testSQLDB(t)

0 commit comments

Comments
 (0)