@@ -6,7 +6,6 @@ package workspace
6
6
7
7
import (
8
8
"context"
9
- "fmt"
10
9
"os"
11
10
"testing"
12
11
"time"
@@ -43,12 +42,10 @@ func TestGitHubContexts(t *testing.T) {
43
42
ExpectedBranch : "integration-test-1" ,
44
43
},
45
44
{
45
+ // Branch name decisions are not tested in the workspace as it is the server side logic
46
46
Name : "open issue" ,
47
47
ContextURL : "github.com/gitpod-io/gitpod-test-repo/issues/88" ,
48
48
WorkspaceRoot : "/workspace/gitpod-test-repo" ,
49
- ExpectedBranchFunc : func (username string ) string {
50
- return fmt .Sprintf ("%s/integration-88" , username )
51
- },
52
49
},
53
50
{
54
51
Name : "open tag" ,
@@ -94,9 +91,6 @@ func TestGitLabContexts(t *testing.T) {
94
91
Name : "open issue" ,
95
92
ContextURL : "gitlab.com/AlexTugarev/gp-test/issues/1" ,
96
93
WorkspaceRoot : "/workspace/gp-test" ,
97
- ExpectedBranchFunc : func (username string ) string {
98
- return fmt .Sprintf ("%s/write-a-readme-1" , username )
99
- },
100
94
},
101
95
{
102
96
Name : "open tag" ,
@@ -164,6 +158,10 @@ func runContextTests(t *testing.T, tests []ContextTest) {
164
158
defer rsa .Close ()
165
159
integration .DeferCloser (t , closer )
166
160
161
+ if test .ExpectedBranch == "" && test .ExpectedBranchFunc == nil {
162
+ return
163
+ }
164
+
167
165
// get actual from workspace
168
166
git := common .Git (rsa )
169
167
err = git .ConfigSafeDirectory ()
0 commit comments