fixed test; removed duplicate workflow
All checks were successful
Tests / test (pull_request) Successful in 16s

This commit is contained in:
Dan Anglin 2024-08-27 15:29:46 +01:00
parent 247a7376b6
commit c4651509d5
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 1 additions and 38 deletions

View file

@ -1,37 +0,0 @@
---
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: docker
env:
GO_TEST_VERBOSE: "1"
GO_TEST_COVER: "1"
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.22'
- name: Test
run: go run magefiles/main.go -v test
lint:
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.22'
- name: Lint
uses: https://github.com/golangci/golangci-lint-action@v3
with:
version: v1.54

View file

@ -12,7 +12,7 @@ import (
func TestCrawler(t *testing.T) {
testBaseURL := "https://example.com"
testCrawler, err := crawler.NewCrawler(testBaseURL)
testCrawler, err := crawler.NewCrawler(testBaseURL, 1, 10)
if err != nil {
t.Fatalf("Test 'TestCrawler' FAILED: unexpected error creating the crawler: %v", err)
}