Skip to content

Commit

Permalink
[testing] Switch to logging with zap (#3557)
Browse files Browse the repository at this point in the history
Signed-off-by: marun <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
  • Loading branch information
marun and StephenButtolph authored Nov 21, 2024
1 parent dbf95e0 commit 5cf58be
Show file tree
Hide file tree
Showing 33 changed files with 752 additions and 419 deletions.
10 changes: 8 additions & 2 deletions tests/antithesis/avalanchego/gencomposeconfig/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
package main

import (
"log"
"os"

"go.uber.org/zap"

"github.com/ava-labs/avalanchego/tests"
"github.com/ava-labs/avalanchego/tests/antithesis"
"github.com/ava-labs/avalanchego/tests/fixture/tmpnet"
)
Expand All @@ -16,6 +19,9 @@ const baseImageName = "antithesis-avalanchego"
func main() {
network := tmpnet.LocalNetworkOrPanic()
if err := antithesis.GenerateComposeConfig(network, baseImageName, "" /* runtimePluginDir */); err != nil {
log.Fatalf("failed to generate compose config: %v", err)
tests.NewDefaultLogger("").Fatal("failed to generate compose config",
zap.Error(err),
)
os.Exit(1)
}
}
Loading

0 comments on commit 5cf58be

Please sign in to comment.