Skip to content

Remove time.Sleep() in commands.taskqueue_test.go#1020

Open
hussam-salah wants to merge 1 commit intotemporalio:mainfrom
hussam-salah:main
Open

Remove time.Sleep() in commands.taskqueue_test.go#1020
hussam-salah wants to merge 1 commit intotemporalio:mainfrom
hussam-salah:main

Conversation

@hussam-salah
Copy link
Copy Markdown

  • remove time.Sleep() needed before v1.26.2 because of server cache bug
  • update test assertions of "2 seconds ago" to "now" since we won't wait

What was changed

test TestTaskQueue_Describe_Simple at commands.taskqueue_test.go was updated to remove unnecessary time.Sleep(1 * time.Second)

Why?

The waiting was a necessary workaround of server cache bug, bug was fixed on v1.26.2

Checklist

  1. Closes
    [Feature Request] Remove time.Sleep() in commands.taskqueue_test.go #741

  2. How was this tested:

Running the unit tests

  1. Any docs updates needed?

- remove time.Sleep() needed before v1.26.2 because of server cache bug
- update test assertions of "2 seconds ago" to "now" since we won't wait

JAVA_HOME="/Users/hussamsalah/Library/Java/JavaVirtualMachines/graalvm-ce-25.0.2/Contents/Home"
@hussam-salah hussam-salah requested a review from a team as a code owner May 3, 2026 19:12
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 3, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants