Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 6, 2024
1 parent 1ce3938 commit 185f18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfservice/strategy/oidc/strategy_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func TestPopulateSettingsMethod(t *testing.T) {
populate := func(t *testing.T, reg *driver.RegistryDefault, ctx context.Context, i *identity.Identity, f *settings.Flow) *container.Container {
require.NoError(t, reg.PrivilegedIdentityPool().CreateIdentity(ctx, i))
req := new(http.Request)
require.NoError(t, ns(t, reg, ctx).PopulateSettingsMethod(req.WithContext(ctx), i, f))
require.NoError(t, ns(t, reg, ctx).PopulateSettingsMethod(ctx, req, i, f))
require.NotNil(t, f.UI)
require.NotNil(t, f.UI.Nodes)
assert.Equal(t, "POST", f.UI.Method)
Expand All @@ -665,7 +665,7 @@ func TestPopulateSettingsMethod(t *testing.T) {
require.NoError(t, reg.PrivilegedIdentityPool().CreateIdentity(ctx, i))
f := &settings.Flow{Type: flow.TypeAPI, ID: x.NewUUID(), UI: container.New("")}
req := new(http.Request)
require.NoError(t, ns(t, reg, ctx).PopulateSettingsMethod(req.WithContext(ctx), i, f))
require.NoError(t, ns(t, reg, ctx).PopulateSettingsMethod(ctx, req, i, f))
require.Empty(t, f.UI.Nodes)
})

Expand Down

0 comments on commit 185f18f

Please sign in to comment.