test: fix sims (#21735)

This commit is contained in:
Julien Robert
2024-09-15 16:06:58 +00:00
committed by GitHub
parent 5909f0a872
commit 01473479c7
4 changed files with 36 additions and 6 deletions
+12 -2
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:
+12 -2
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:
+6 -1
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{}
+6 -1
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