Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit514fdbf

Browse files
committed
exclude system user db tests from non-linux OSs
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent8e491d8 commit514fdbf

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+
ifruntime.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)

[8]ページ先頭

©2009-2025 Movatter.jp