-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: Use smaller logger dependency with override support (#25)
* workflow: Use smaller logger dependency with override support * clean up * reduce code duplication * exclude jlog adapter module * remove errmeta package * clean up
- Loading branch information
1 parent
834c034
commit 6bd9675
Showing
66 changed files
with
1,233 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ import ( | |
"time" | ||
|
||
"github.com/google/uuid" | ||
"github.com/luno/jettison/jtest" | ||
"github.com/stretchr/testify/require" | ||
clock_testing "k8s.io/utils/clock/testing" | ||
|
||
|
@@ -91,14 +90,14 @@ func RunEventStreamerTest(t *testing.T, constructor workflow.EventStreamer) { | |
CountryCode: "GB", | ||
} | ||
runId, err := wf.Trigger(ctx, foreignID, SyncStatusStarted, workflow.WithInitialValue[User, SyncStatus](&u)) | ||
jtest.RequireNil(t, err) | ||
require.Nil(t, err) | ||
|
||
workflow.AwaitTimeoutInsert(t, wf, foreignID, runId, SyncStatusEmailSet) | ||
|
||
clock.Step(time.Hour) | ||
|
||
record, err := wf.Await(ctx, foreignID, runId, SyncStatusCompleted) | ||
jtest.RequireNil(t, err) | ||
require.Nil(t, err) | ||
|
||
require.Equal(t, "[email protected]", record.Object.Email) | ||
require.Equal(t, SyncStatusCompleted.String(), record.Status.String()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.