File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ type data struct {
159
159
derpMeshKey string
160
160
lastUpdateCheck []byte
161
161
serviceBanner []byte
162
+ dismissedHealthchecks []byte
162
163
applicationName string
163
164
logoURL string
164
165
appSecurityKey string
@@ -1592,7 +1593,14 @@ func (q *FakeQuerier) GetDeploymentWorkspaceStats(ctx context.Context) (database
1592
1593
}
1593
1594
1594
1595
func (q * FakeQuerier ) GetDismissedHealthchecks (ctx context.Context ) (string , error ) {
1595
- panic ("not implemented" )
1596
+ q .mutex .RLock ()
1597
+ defer q .mutex .RUnlock ()
1598
+
1599
+ if q .dismissedHealthchecks == nil {
1600
+ return "" , sql .ErrNoRows
1601
+ }
1602
+
1603
+ return string (q .dismissedHealthchecks ), nil
1596
1604
}
1597
1605
1598
1606
func (q * FakeQuerier ) GetExternalAuthLink (_ context.Context , arg database.GetExternalAuthLinkParams ) (database.ExternalAuthLink , error ) {
@@ -6794,8 +6802,12 @@ func (q *FakeQuerier) UpsertDefaultProxy(_ context.Context, arg database.UpsertD
6794
6802
return nil
6795
6803
}
6796
6804
6797
- func (q * FakeQuerier ) UpsertDismissedHealthchecks (ctx context.Context , value string ) error {
6798
- panic ("not implemented" )
6805
+ func (q * FakeQuerier ) UpsertDismissedHealthchecks (ctx context.Context , data string ) error {
6806
+ q .mutex .RLock ()
6807
+ defer q .mutex .RUnlock ()
6808
+
6809
+ q .dismissedHealthchecks = []byte (data )
6810
+ return nil
6799
6811
}
6800
6812
6801
6813
func (q * FakeQuerier ) UpsertLastUpdateCheck (_ context.Context , data string ) error {
You can’t perform that action at this time.
0 commit comments