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

Commitd3ed6fe

Browse files
authored
chore(coderd/autobuild): use dbtestutil.WillUsePostgres instead of os.Getenv in test (#18145)
Standardizing on `WillUsePostgres` will make it easier to remove thecheck entirely once dbmem is removed.Related to#15109.
1 parent782d01b commitd3ed6fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎coderd/autobuild/lifecycle_executor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package autobuild_test
22

33
import (
44
"context"
5-
"os"
65
"testing"
76
"time"
87

@@ -741,7 +740,7 @@ func TestExecutorWorkspaceAutostopNoWaitChangedMyMind(t *testing.T) {
741740
}
742741

743742
funcTestExecutorAutostartMultipleOK(t*testing.T) {
744-
ifos.Getenv("DB")=="" {
743+
if!dbtestutil.WillUsePostgres() {
745744
t.Skip(`This test only really works when using a "real" database, similar to a HA setup`)
746745
}
747746

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp