From 1e6fd3c1dd03f52137205f3e66f6dee20ac4fe17 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 13 Aug 2023 14:02:59 +0100 Subject: Switch to go.awhk.org/core for testing --- config_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config_test.go') 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) } -- cgit v1.2.3-70-g09d2