Skip to content

Commit

Permalink
chore: skip some test on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Dec 3, 2020
1 parent 084d0f3 commit 4dd2863
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions motoko_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package main

import (
"go/build"
"io/ioutil"
"os"
"path/filepath"
"testing"
)

func Test_updateCmd(t *testing.T) {
if os.Getenv("TRAVIS") == "true" {
// Because "GetSizesGolist" doesn't work well on Travis.
// https://github.com/golang/tools/blob/16909d206f00da7d0d5ba28cd9dc7fb223648ecf/go/internal/packagesdriver/sizes.go#L80
t.Skipf("TRAVIS=true")
if os.Getenv("CI") == "true" && build.Default.GOOS == "windows" {
// Because the cleanup doesn't work well on Windows in GitHub Actions
// The process cannot access the file because it is being used by another process.
t.Skipf("Windows and GitHub Actions")
}

type expected struct {
Expand Down

0 comments on commit 4dd2863

Please sign in to comment.