test: fix sims (#21735)

This commit is contained in:
Julien Robert 2024-09-15 18:06:58 +02:00 committed by GitHub
parent 5909f0a872
commit 01473479c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 36 additions and 6 deletions

View File

@ -93,7 +93,12 @@ jobs:
sims-notify-success:
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
[
test-sim-multi-seed-short,
test-sim-after-import,
test-sim-import-export,
test-sim-deterministic,
]
runs-on: large-sdk-runner
if: ${{ success() }}
steps:
@ -120,7 +125,12 @@ jobs:
permissions:
contents: none
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
[
test-sim-multi-seed-short,
test-sim-after-import,
test-sim-import-export,
test-sim-deterministic,
]
runs-on: large-sdk-runner
if: ${{ failure() }}
steps:

View File

@ -83,7 +83,12 @@ jobs:
sims-notify-success:
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
[
test-sim-multi-seed-short,
test-sim-after-import,
test-sim-import-export,
test-sim-deterministic,
]
runs-on: large-sdk-runner
if: ${{ success() }}
steps:
@ -111,7 +116,12 @@ jobs:
permissions:
contents: none
needs:
[test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export]
[
test-sim-multi-seed-short,
test-sim-after-import,
test-sim-import-export,
test-sim-deterministic,
]
runs-on: large-sdk-runner
if: ${{ failure() }}
steps:

View File

@ -493,7 +493,12 @@ func (m mapGetter) Get(key string) interface{} {
}
func (m mapGetter) GetString(key string) string {
return m[key].(string)
str, ok := m[key]
if !ok {
return ""
}
return str.(string)
}
var _ servertypes.AppOptions = mapGetter{}

View File

@ -236,7 +236,12 @@ func (f AppOptionsFn) Get(k string) any {
}
func (f AppOptionsFn) GetString(k string) string {
return f(k).(string)
str, ok := f(k).(string)
if !ok {
return ""
}
return str
}
// FauxMerkleModeOpt returns a BaseApp option to use a dbStoreAdapter instead of