Skip to content

Commit 36148cc

Browse files
committed
Run more actions util tests serially
1 parent 675af55 commit 36148cc

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/actions-util.test.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test("computeAutomationID()", async (t) => {
100100
);
101101
});
102102

103-
test("getPullRequestBranches() with pull request context", (t) => {
103+
test.serial("getPullRequestBranches() with pull request context", (t) => {
104104
withMockedContext(
105105
{
106106
pull_request: {
@@ -119,19 +119,22 @@ test("getPullRequestBranches() with pull request context", (t) => {
119119
);
120120
});
121121

122-
test("getPullRequestBranches() returns undefined with push context", (t) => {
123-
withMockedContext(
124-
{
125-
push: {
126-
ref: "refs/heads/main",
122+
test.serial(
123+
"getPullRequestBranches() returns undefined with push context",
124+
(t) => {
125+
withMockedContext(
126+
{
127+
push: {
128+
ref: "refs/heads/main",
129+
},
127130
},
128-
},
129-
() => {
130-
t.is(getPullRequestBranches(), undefined);
131-
t.is(isAnalyzingPullRequest(), false);
132-
},
133-
);
134-
});
131+
() => {
132+
t.is(getPullRequestBranches(), undefined);
133+
t.is(isAnalyzingPullRequest(), false);
134+
},
135+
);
136+
},
137+
);
135138

136139
test.serial(
137140
"getPullRequestBranches() with Default Setup environment variables",

0 commit comments

Comments
 (0)