Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
  • Loading branch information
rodneyosodo committed Jul 31, 2023
1 parent 587bd7c commit d5c598c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap/redis/producer/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (es *eventStore) Bootstrap(ctx context.Context, externalKey, externalID str
return cfg, err

Check warning on line 165 in bootstrap/redis/producer/streams.go

View check run for this annotation

Codecov / codecov/patch

bootstrap/redis/producer/streams.go#L165

Added line #L165 was not covered by tests
}

return cfg, nil
return cfg, err
}

func (es *eventStore) ChangeState(ctx context.Context, token, id string, state bootstrap.State) error {
Expand Down
6 changes: 3 additions & 3 deletions bootstrap/redis/producer/streams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ func TestBootstrap(t *testing.T) {
},
{
desc: "bootstrap with an error",
externalID: saved.ExternalID,
externalKey: "external_id1",
err: bootstrap.ErrExternalKey,
externalID: "external_id1",
externalKey: "external_id",
err: bootstrap.ErrBootstrap,
event: map[string]interface{}{
"external_id": "external_id",
"success": "0",
Expand Down

0 comments on commit d5c598c

Please sign in to comment.