Skip to content

Commit eaea301

Browse files
committed
all: CUE_EXPERIMENT=modules no longer needs to be set in tests
It has been the default for many months now. While here, we don't need to set CUE_REGISTRY=registry.cue.works in the end-to-end tests, as that is also the default now. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ieedd7bbfe4514f98099bc0b10e130bc4f14c58e3 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205709 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent 0005c22 commit eaea301

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

cmd/cue/cmd/script_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ func TestScript(t *testing.T) {
208208
if neg || len(args) != 1 {
209209
ts.Fatalf("usage: oauthregistry <mode>")
210210
}
211-
ts.Setenv("CUE_EXPERIMENT", "modules")
212211
srv := newMockRegistryOauth(args[0])
213212
u, _ := url.Parse(srv.URL)
214213
ts.Setenv("CUE_REGISTRY", u.Host+"+insecure")

cmd/cue/cmd/testdata/script/def_proto.txtar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
env CUE_EXPERIMENT=modules
21
exec cue def policy.proto -p api -I include
32
cmp stdout expect-stdout
43

internal/_e2e/script_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ func TestScript(t *testing.T) {
9494
RequireExplicitExec: true,
9595
RequireUniqueNames: true,
9696
Setup: func(env *testscript.Env) error {
97-
env.Setenv("CUE_EXPERIMENT", "modules")
98-
env.Setenv("CUE_REGISTRY", "registry.cue.works")
9997
env.Setenv("CUE_CACHED_GOBIN", os.Getenv("CUE_CACHED_GOBIN"))
10098
env.Setenv("CUE_REGISTRY_TOKEN", os.Getenv("CUE_REGISTRY_TOKEN"))
10199

0 commit comments

Comments
 (0)