aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2023-08-13 14:02:59 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2023-08-13 14:06:39 +0100
commit1e6fd3c1dd03f52137205f3e66f6dee20ac4fe17 (patch)
treef6e9f6305e0034ac430cb7f3f5ea1d14d8acd511 /config_test.go
parenta7b06fd8c650faa4b272625eb9607749c52ec6f5 (diff)
Switch to go.awhk.org/core for testing
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/config_test.go b/config_test.go
index 0ab881a..207f429 100644
--- a/config_test.go
+++ b/config_test.go
@@ -5,13 +5,15 @@ import (
_ "embed"
"testing"
- "github.com/stretchr/testify/assert"
+ "go.awhk.org/core"
)
//go:embed config_example.yaml
var cfg []byte
-func TestConfig(t *testing.T) {
+func TestConfig(s *testing.T) {
+ t := core.T{T: s}
+
_, err := loadConfig(bytes.NewReader(cfg))
- assert.NoError(t, err)
+ t.AssertErrorIs(nil, err)
}