From 3e80192bef0ed069e94c90006f70dfe317ae512b Mon Sep 17 00:00:00 2001 From: SoXX Date: Tue, 24 Oct 2023 15:25:38 +0200 Subject: [PATCH] test: fix tests conversions Signed-off-by: SoXX --- pkg/e621/builder/tag_test.go | 2 +- pkg/e621/builder/user_test.go | 2 +- pkg/e621/endpoints/tag_test.go | 2 +- pkg/e621/endpoints/user_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/e621/builder/tag_test.go b/pkg/e621/builder/tag_test.go index b5bc3b6..26575bf 100644 --- a/pkg/e621/builder/tag_test.go +++ b/pkg/e621/builder/tag_test.go @@ -45,7 +45,7 @@ func TestGetTag(t *testing.T) { return } - if tag.ID == tagResponse.ID && tag.Name == tagResponse.Name && tag.CreatedAt == tag.CreatedAt { + if tag.ID == tagResponse.ID && tag.Name == tagResponse.Name && tag.CreatedAt == tagResponse.CreatedAt { return } diff --git a/pkg/e621/builder/user_test.go b/pkg/e621/builder/user_test.go index 59d67f7..fc7c3b2 100644 --- a/pkg/e621/builder/user_test.go +++ b/pkg/e621/builder/user_test.go @@ -60,7 +60,7 @@ func TestGetUser(t *testing.T) { return } - if user.ID == userResponse.ID && user.Name == userResponse.Name && user.CreatedAt == user.CreatedAt { + if user.ID == userResponse.ID && user.Name == userResponse.Name && user.CreatedAt == userResponse.CreatedAt { return } diff --git a/pkg/e621/endpoints/tag_test.go b/pkg/e621/endpoints/tag_test.go index a49ca43..ecddc7e 100644 --- a/pkg/e621/endpoints/tag_test.go +++ b/pkg/e621/endpoints/tag_test.go @@ -44,7 +44,7 @@ func TestGetTag(t *testing.T) { return } - if tag.ID == tagResponse.ID && tag.Name == tagResponse.Name && tag.CreatedAt == tag.CreatedAt { + if tag.ID == tagResponse.ID && tag.Name == tagResponse.Name && tag.CreatedAt == tagResponse.CreatedAt { return } diff --git a/pkg/e621/endpoints/user_test.go b/pkg/e621/endpoints/user_test.go index 7eda544..5c6acfe 100644 --- a/pkg/e621/endpoints/user_test.go +++ b/pkg/e621/endpoints/user_test.go @@ -59,7 +59,7 @@ func TestGetUser(t *testing.T) { return } - if user.ID == userResponse.ID && user.Name == userResponse.Name && user.CreatedAt == user.CreatedAt { + if user.ID == userResponse.ID && user.Name == userResponse.Name && user.CreatedAt == userResponse.CreatedAt { return }