Chore: Attempt to reduce flakiness in integration tests (#97247)
* sqlstore/sqlutil: set sync=OFF for sqlite in tests if wal=true * testinfra: set max open/idle conn to 2 to match e2e tests
This commit is contained in:
@@ -461,9 +461,14 @@ func CreateGrafDir(t *testing.T, opts ...GrafanaOpts) (string, string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
logSection, err := getOrCreateSection("database")
|
||||
|
||||
dbSection, err := getOrCreateSection("database")
|
||||
require.NoError(t, err)
|
||||
_, err = logSection.NewKey("query_retries", fmt.Sprintf("%d", queryRetries))
|
||||
_, err = dbSection.NewKey("query_retries", fmt.Sprintf("%d", queryRetries))
|
||||
require.NoError(t, err)
|
||||
_, err = dbSection.NewKey("max_open_conn", "2")
|
||||
require.NoError(t, err)
|
||||
_, err = dbSection.NewKey("max_idle_conn", "2")
|
||||
require.NoError(t, err)
|
||||
|
||||
cfgPath := filepath.Join(cfgDir, "test.ini")
|
||||
|
||||
Reference in New Issue
Block a user