Skip to content

Commit 3f8a84d

Browse files
committed
Revert "Add parallel testing"
This reverts commit 047d899.
1 parent 4026b6f commit 3f8a84d

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

.github/workflows/codeforces.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: echo "PUBLIC_TESTS_ONLY=" >> $GITHUB_ENV
3838

3939
- name: Run Test
40-
run: go test -v -coverprofile=c.out -p=3 ./codeforces
40+
run: go test -v -coverprofile=c.out ./codeforces
4141
env:
4242
BROWSER_HEADLESS:
4343
BROWSER_BINARY: google-chrome

codeforces/contests_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ func TestArgs_GetCountdown(t *testing.T) {
269269
}
270270
for _, tt := range tests {
271271
t.Run(tt.name, func(t *testing.T) {
272-
t.Parallel()
273-
274272
got, err := tt.arg.GetCountdown()
275273
if (err != nil) != tt.wantErr {
276274
t.Errorf("Args.GetCountdown() error = %v, wantErr %v", err, tt.wantErr)
@@ -463,8 +461,6 @@ func TestArgs_GetContests(t *testing.T) {
463461
}
464462
for _, tt := range tests {
465463
t.Run(tt.name, func(t *testing.T) {
466-
t.Parallel()
467-
468464
got, err := tt.arg.GetContests(tt.args.pageCount)
469465
if (err != nil) != tt.wantErr {
470466
t.Errorf("Args.GetContests() error = %v, wantErr %v", err, tt.wantErr)
@@ -745,8 +741,6 @@ func TestArgs_GetDashboard(t *testing.T) {
745741
}
746742
for _, tt := range tests {
747743
t.Run(tt.name, func(t *testing.T) {
748-
t.Parallel()
749-
750744
got, err := tt.arg.GetDashboard()
751745
// set solve count to -1
752746
for i := range got.Problem {

codeforces/problems_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ func TestArgs_GetProblems(t *testing.T) {
438438
}
439439
for _, tt := range tests {
440440
t.Run(tt.name, func(t *testing.T) {
441-
t.Parallel()
442-
443441
got, err := tt.arg.GetProblems()
444442
if (err != nil) != tt.wantErr {
445443
t.Errorf("Args.GetProblems() error = %v, wantErr %v", err, tt.wantErr)

codeforces/submissions_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ func TestArgs_GetSubmissions(t *testing.T) {
259259
}
260260
for _, tt := range tests {
261261
t.Run(tt.name, func(t *testing.T) {
262-
t.Parallel()
263262

264263
got, err := tt.arg.GetSubmissions(tt.args.handle, tt.args.count)
265264
if (err != nil) != tt.wantErr {
@@ -373,8 +372,6 @@ int main() {
373372
}
374373
for _, tt := range tests {
375374
t.Run(tt.name, func(t *testing.T) {
376-
t.Parallel()
377-
378375
got, err := tt.sub.GetSourceCode()
379376
if (err != nil) != tt.wantErr {
380377
t.Errorf("Submission.GetSourceCode() error = %v, wantErr %v", err, tt.wantErr)

0 commit comments

Comments
 (0)