Skip to content

Commit 514fdbf

Browse files
committed
exclude system user db tests from non-linux OSs
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 8e491d8 commit 514fdbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/users_test.go

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy