Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Nov 4, 2024
1 parent f0dde31 commit 1068050
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/connector/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ func TestService_UpdateSuccess(t *testing.T) {
Name: "changed-name",
Settings: map[string]string{"foo": "bar"},
}
wantPlugin := "changed-plugin"

conn, err := service.Create(
ctx,
Expand All @@ -530,10 +531,11 @@ func TestService_UpdateSuccess(t *testing.T) {
is.NoErr(err)

beforeUpdate := time.Now()
got, err := service.Update(ctx, conn.ID, "test-plugin", want)
got, err := service.Update(ctx, conn.ID, wantPlugin, want)
is.NoErr(err)

is.Equal(got.Config, want)
is.Equal(got.Plugin, wantPlugin)
is.True(!got.UpdatedAt.Before(beforeUpdate))
}

Expand Down

0 comments on commit 1068050

Please sign in to comment.