Skip to content

Commit

Permalink
refactor unit tests on package lock (#374)
Browse files Browse the repository at this point in the history
* don't use ping to wait for some time
a ping to localhost doesn't necessarily work on some firewalled computers

* fix duplicated tests

* fix tests under windows

* fix linux test by using "exec"
  • Loading branch information
creativeprojects committed Jun 28, 2024
1 parent 5cfdca2 commit 854f6c9
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 171 deletions.
54 changes: 0 additions & 54 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,54 +0,0 @@
linters-settings:
govet:
check-shadowing: true
gocyclo:
min-complexity: 20
dupl:
threshold: 100
goconst:
min-len: 3
min-occurrences: 3
lll:
line-length: 160
nakedret:
max-func-lines: 20
gocritic:
enabled-tags:
- performance
- style
- diagnostic
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
settings:
rangeValCopy:
sizeThreshold: 512
hugeParam:
sizeThreshold: 512
linters:
enable-all: true
disable:
- interfacer
- scopelint
- golint
- maligned
- godot
- gochecknoglobals
- exhaustivestruct
- wsl
- nestif
- goerr113
- nlreturn
- wrapcheck
- misspell
- cyclop
- whitespace
- paralleltest

fast: false

run:
tests: true

issues:
exclude-use-default: true

2 changes: 1 addition & 1 deletion config/mocks/NamedPropertySet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/mocks/ProfileInfo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/mocks/PropertyInfo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/mocks/SectionInfo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 854f6c9

Please sign in to comment.