Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptance/acceptance_test.go')
-rw-r--r--test/acceptance/acceptance_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/acceptance/acceptance_test.go b/test/acceptance/acceptance_test.go
index 9d0c0cd2..b36bd63d 100644
--- a/test/acceptance/acceptance_test.go
+++ b/test/acceptance/acceptance_test.go
@@ -1,8 +1,10 @@
package acceptance_test
import (
+ "errors"
"flag"
"fmt"
+ "io/fs"
"log"
"os"
"testing"
@@ -58,7 +60,7 @@ func TestMain(m *testing.M) {
os.Exit(0)
}
- if _, err := os.Stat(*pagesBinary); os.IsNotExist(err) {
+ if _, err := os.Stat(*pagesBinary); errors.Is(err, fs.ErrNotExist) {
log.Fatalf("Couldn't find gitlab-pages binary at %s\n", *pagesBinary)
}