@@ -24,7 +24,6 @@ package test_test
24
24
25
25
import (
26
26
"context"
27
- "os"
28
27
"testing"
29
28
"time"
30
29
@@ -39,13 +38,6 @@ import (
39
38
"go.temporal.io/sdk/worker"
40
39
)
41
40
42
- var runNewVersioningTests bool
43
-
44
- func init () {
45
- run , ok := os .LookupEnv ("RUN_VERSIONING_V2_TESTS" )
46
- runNewVersioningTests = ok && run != ""
47
- }
48
-
49
41
type WorkerVersioningTestSuite struct {
50
42
* require.Assertions
51
43
suite.Suite
@@ -111,10 +103,6 @@ func (ts *WorkerVersioningTestSuite) TestManipulateVersionSets() {
111
103
}
112
104
113
105
func (ts * WorkerVersioningTestSuite ) TestManipulateRules () {
114
- if ! runNewVersioningTests {
115
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
116
- }
117
-
118
106
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
119
107
defer cancel ()
120
108
@@ -181,10 +169,6 @@ func (ts *WorkerVersioningTestSuite) TestManipulateRules() {
181
169
}
182
170
183
171
func (ts * WorkerVersioningTestSuite ) TestReplaceDeleteRules () {
184
- if ! runNewVersioningTests {
185
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
186
- }
187
-
188
172
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
189
173
defer cancel ()
190
174
@@ -277,10 +261,6 @@ func (ts *WorkerVersioningTestSuite) TestReplaceDeleteRules() {
277
261
}
278
262
279
263
func (ts * WorkerVersioningTestSuite ) TestCommitRules () {
280
- if ! runNewVersioningTests {
281
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
282
- }
283
-
284
264
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
285
265
defer cancel ()
286
266
@@ -354,10 +334,6 @@ func (ts *WorkerVersioningTestSuite) TestCommitRules() {
354
334
}
355
335
356
336
func (ts * WorkerVersioningTestSuite ) TestConflictTokens () {
357
- if ! runNewVersioningTests {
358
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
359
- }
360
-
361
337
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
362
338
defer cancel ()
363
339
@@ -467,10 +443,6 @@ func (ts *WorkerVersioningTestSuite) TestTwoWorkersGetDifferentTasks() {
467
443
}
468
444
469
445
func (ts * WorkerVersioningTestSuite ) TestTwoWorkersGetDifferentTasksWithRules () {
470
- if ! runNewVersioningTests {
471
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
472
- }
473
-
474
446
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
475
447
defer cancel ()
476
448
@@ -558,10 +530,6 @@ func (ts *WorkerVersioningTestSuite) TestReachabilityUnreachable() {
558
530
}
559
531
560
532
func (ts * WorkerVersioningTestSuite ) TestReachabilityUnreachableWithRules () {
561
- if ! runNewVersioningTests {
562
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
563
- }
564
-
565
533
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
566
534
defer cancel ()
567
535
@@ -624,10 +592,6 @@ func (ts *WorkerVersioningTestSuite) TestReachabilityUnversionedWorker() {
624
592
}
625
593
626
594
func (ts * WorkerVersioningTestSuite ) TestReachabilityUnversionedWorkerWithRules () {
627
- if ! runNewVersioningTests {
628
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
629
- }
630
-
631
595
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
632
596
defer cancel ()
633
597
@@ -745,10 +709,6 @@ func (ts *WorkerVersioningTestSuite) TestReachabilityVersions() {
745
709
}
746
710
747
711
func (ts * WorkerVersioningTestSuite ) TestReachabilityVersionsWithRules () {
748
- if ! runNewVersioningTests {
749
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
750
- }
751
-
752
712
ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Minute )
753
713
defer cancel ()
754
714
@@ -913,10 +873,6 @@ func (ts *WorkerVersioningTestSuite) TestBuildIDChangesOverWorkflowLifetime() {
913
873
}
914
874
915
875
func (ts * WorkerVersioningTestSuite ) TestBuildIDChangesOverWorkflowLifetimeWithRules () {
916
- if ! runNewVersioningTests {
917
- ts .T ().Skip ("temporal cli devserver does not support new versioning API yet." )
918
- }
919
-
920
876
ctx , cancel := context .WithTimeout (context .Background (), ctxTimeout )
921
877
defer cancel ()
922
878
0 commit comments