Skip to content

Commit 2021f63

Browse files
preload test keys for lazy test
1 parent b97eabb commit 2021f63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

prover/server/integration_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
)
2020

2121
var isLightweightMode bool
22+
var preloadKeys bool
2223

2324
const ProverAddress = "localhost:8081"
2425
const MetricsAddress = "localhost:9999"
@@ -103,7 +104,7 @@ func TestMain(m *testing.M) {
103104

104105
runIntegrationTests := false
105106
isLightweightMode = true
106-
preloadKeys := true
107+
preloadKeys = true
107108

108109
for _, arg := range os.Args {
109110
if strings.Contains(arg, "-test.run=TestFull") {
@@ -169,6 +170,10 @@ func TestLightweight(t *testing.T) {
169170
}
170171

171172
func TestLightweightLazy(t *testing.T) {
173+
if preloadKeys {
174+
t.Skip("This test only runs when preloadKeys is false (lazy mode)")
175+
}
176+
172177
logging.Logger().Info().Msg("TestLightweightLazy: Running tests with lazy key loading")
173178

174179
runCommonTests(t)

0 commit comments

Comments
 (0)