Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed Feb 12, 2024
1 parent 6eead11 commit f7683b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
name: Profiling
timeout-minutes: 5
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MAKEFLAGS += --warn-undefined-variables
SHELL ?= /bin/bash -euo pipefail
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
CGO_ENABLED ?= $(shell go env CGO_ENABLED)
Expand Down
6 changes: 4 additions & 2 deletions pkg/pgpasswd/crypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ func TestEncrypt(t *testing.T) {
}
}

func BenchmarkCompressResponse(b *testing.B) {
func BenchmarkEncrypt(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
Encrypt(dummyPassword)
if _, err := Encrypt(dummyPassword); err != nil {
b.Fatal(err)
}
}
}

0 comments on commit f7683b5

Please sign in to comment.