From 30766e2d741e8547b397a1ad9f64b3dba02496a5 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Wed, 16 Apr 2025 17:15:15 -0700 Subject: [PATCH] simplify test setup --- cmd/relay/testing/sync_test.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/cmd/relay/testing/sync_test.go b/cmd/relay/testing/sync_test.go index eb9127de..6a99fdfa 100644 --- a/cmd/relay/testing/sync_test.go +++ b/cmd/relay/testing/sync_test.go @@ -8,22 +8,12 @@ import ( ) func TestPostScenarios(t *testing.T) { - assert := assert.New(t) ctx := context.Background() - base, err := LoadScenario(ctx, "testdata/post_lifecycle.json") + err := LoadAndRunScenario(ctx, "testdata/post_lifecycle.json") if err != nil { t.Fatal(err) } - - // base case is successful - assert.NoError(RunScenario(ctx, base)) - - // mess with revisions - // TODO: get this test working - //base.Messages[2].Frame.Event.RepoCommit.Rev = "222pyftdf4h2r" - //base.Messages[2].Drop = true - //assert.NoError(RunScenario(ctx, base)) } func TestWrongKey(t *testing.T) { @@ -76,7 +66,7 @@ func TestAccountLifecycle(t *testing.T) { assert := assert.New(t) ctx := context.Background() - base, err := LoadScenario(ctx, "testdata/post_lifecycle.json") + base, err := LoadScenario(ctx, "testdata/account_lifecycle.json") if err != nil { t.Fatal(err) } -- 2.51.2