Skip to content

Commit

Permalink
Add testserver.StoreOnDiskOpt() for crdb tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk committed Jan 18, 2024
1 parent 53f08f4 commit fb42c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quota/crdbqm/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

func TestMain(m *testing.M) {
ts, err := testserver.NewTestServer(testserver.CustomVersionOpt("22.2.17"))
ts, err := testserver.NewTestServer(testserver.CustomVersionOpt("22.2.17"), testserver.StoreOnDiskOpt())
if err != nil {
klog.Errorf("Failed to start test server: %v", err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion storage/crdb/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (db *testDBHandle) GetDB() *sql.DB {
func TestMain(m *testing.M) {
flag.Parse()

ts, err := testserver.NewTestServer(testserver.CustomVersionOpt("22.2.17"))
ts, err := testserver.NewTestServer(testserver.CustomVersionOpt("22.2.17"), testserver.StoreOnDiskOpt())
if err != nil {
klog.Exitf("Failed to start test server: %v", err)
}
Expand Down

0 comments on commit fb42c16

Please sign in to comment.