Explorar o código

tests(db): fix data race (#7444)

[skip ci]
Joe Chen %!s(int64=2) %!d(string=hai) anos
pai
achega
ada1083462
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      internal/db/actions_test.go

+ 2 - 0
internal/db/actions_test.go

@@ -148,6 +148,8 @@ func actionsCommitRepo(t *testing.T, db *actions) {
 
 	now := time.Unix(1588568886, 0).UTC()
 
+	conf.SetMockSSH(t, conf.SSHOpts{})
+
 	t.Run("new commit", func(t *testing.T) {
 		t.Cleanup(func() {
 			err := db.Session(&gorm.Session{AllowGlobalUpdate: true}).WithContext(ctx).Delete(new(Action)).Error