@@ -2,11 +2,12 @@ package temporalcli_test
22
33import (
44 "encoding/json"
5- "github.com/stretchr/testify/assert"
6- "go.temporal.io/sdk/workflow"
75 "strings"
86 "time"
97
8+ "github.com/stretchr/testify/assert"
9+ "go.temporal.io/sdk/workflow"
10+
1011 "github.com/google/uuid"
1112 "github.com/temporalio/cli/temporalcli"
1213 "go.temporal.io/api/enums/v1"
@@ -261,6 +262,10 @@ func (s *SharedServerSuite) TestTaskQueue_Describe_Simple() {
261262 )
262263 s .NoError (res .Err )
263264
265+ // TODO(antlai-temporal): Delete when a server caching bug in 1.26.2 is fixed,
266+ // see https://github.com/temporalio/temporal/pull/6978
267+ time .Sleep (1 * time .Second )
268+
264269 // Text
265270 res = s .Execute (
266271 "task-queue" , "describe" ,
@@ -270,11 +275,14 @@ func (s *SharedServerSuite) TestTaskQueue_Describe_Simple() {
270275 "--task-queue" , s .Worker ().Options .TaskQueue ,
271276 )
272277 s .NoError (res .Err )
273-
274278 s .ContainsOnSameLine (res .Stdout .String (), "id1" , "reachable" )
275279 // No pollers on id1
276280 s .NotContains (res .Stdout .String (), "now" )
277281
282+ // TODO(antlai-temporal): Delete when a server caching bug in 1.26.2 is fixed,
283+ // see https://github.com/temporalio/temporal/pull/6978
284+ time .Sleep (1 * time .Second )
285+
278286 res = s .Execute (
279287 "task-queue" , "describe" ,
280288 "--select-unversioned" ,
@@ -286,8 +294,12 @@ func (s *SharedServerSuite) TestTaskQueue_Describe_Simple() {
286294 s .NoError (res .Err )
287295
288296 s .ContainsOnSameLine (res .Stdout .String (), "UNVERSIONED" , "unreachable" )
289- s .ContainsOnSameLine (res .Stdout .String (), "UNVERSIONED" , "workflow" , s .DevServer .Options .ClientOptions .Identity , "now" , "100000" )
290- s .ContainsOnSameLine (res .Stdout .String (), "UNVERSIONED" , "activity" , s .DevServer .Options .ClientOptions .Identity , "now" , "100000" )
297+ s .ContainsOnSameLine (res .Stdout .String (), "UNVERSIONED" , "workflow" , s .DevServer .Options .ClientOptions .Identity , "2 seconds ago" , "100000" )
298+ s .ContainsOnSameLine (res .Stdout .String (), "UNVERSIONED" , "activity" , s .DevServer .Options .ClientOptions .Identity , "2 seconds ago" , "100000" )
299+
300+ // TODO(antlai-temporal): Delete when a server caching bug in 1.26.2 is fixed,
301+ // see https://github.com/temporalio/temporal/pull/6978
302+ time .Sleep (1 * time .Second )
291303
292304 res = s .Execute (
293305 "task-queue" , "describe" ,
@@ -303,6 +315,10 @@ func (s *SharedServerSuite) TestTaskQueue_Describe_Simple() {
303315 // No pollers on id2
304316 s .NotContains (res .Stdout .String (), "now" )
305317
318+ // TODO(antlai-temporal): Delete when a server caching bug in 1.26.2 is fixed,
319+ // see https://github.com/temporalio/temporal/pull/6978
320+ time .Sleep (1 * time .Second )
321+
306322 res = s .Execute (
307323 "task-queue" , "describe" ,
308324 "--select-all-active" ,
0 commit comments