Skip to content

Commit 767faec

Browse files
committed
use t.SetEnv
1 parent c4dd576 commit 767faec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mob_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,11 +1411,10 @@ func TestStartBranchEnvWithUncommitedChangesFixWithoutBranch(t *testing.T) {
14111411
output, _ := setup(t)
14121412

14131413
setWorkingDir(tempDir + "/local")
1414-
os.Setenv("MOB_WIP_BRANCH_QUALIFIER", "red")
1414+
t.Setenv("MOB_WIP_BRANCH_QUALIFIER", "red")
14151415
createFile(t, "uncommited.txt", "contentIrrelevant")
14161416
runMob(t, tempDir+"/local", "start")
14171417

1418-
os.Unsetenv("MOB_WIP_BRANCH_QUALIFIER")
14191418
assertOutputContains(t, output, "mob start --include-uncommitted-changes")
14201419
}
14211420

0 commit comments

Comments
 (0)