Skip to content

Commit cde67f8

Browse files
committed
remove unneeded sleep timer
1 parent 4f8355f commit cde67f8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/lightning_web/channels/workflow_channel_test.exs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,11 +2309,11 @@ defmodule LightningWeb.WorkflowChannelTest do
23092309
assert broadcast_template.name == "Test Template"
23102310
end
23112311

2312-
test "successfully updates existing template as superuser", %{
2312+
test "successfully updates existing template as suport user", %{
23132313
workflow: workflow,
23142314
project: project
23152315
} do
2316-
# Create a superuser
2316+
# Create a suport user
23172317
superuser = insert(:user, support_user: true)
23182318
insert(:project_user, project: project, user: superuser, role: :editor)
23192319

@@ -2337,9 +2337,6 @@ defmodule LightningWeb.WorkflowChannelTest do
23372337
"workflow_id" => workflow.id
23382338
})
23392339

2340-
# Small delay to ensure different timestamp
2341-
:timer.sleep(1100)
2342-
23432340
# Update the template
23442341
ref =
23452342
push(socket, "publish_template", %{

0 commit comments

Comments
 (0)