exclude system user db tests from non-linux OSs

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
This commit is contained in:
Danny Kopping
2025-03-13 21:10:30 +00:00
parent 8e491d88fb
commit 514fdbf7ce

View File

@ -5,6 +5,7 @@ import (
"database/sql"
"fmt"
"net/http"
"runtime"
"slices"
"strings"
"testing"
@ -2423,6 +2424,10 @@ func TestSystemUserBehaviour(t *testing.T) {
// Setup.
t.Parallel()
if runtime.GOOS != "linux" {
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")
}
ctx := testutil.Context(t, testutil.WaitLong)
sqlDB := testSQLDB(t)