From ccba530255dc828a6934809ea527ba75ba0184f9 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 23 May 2022 11:51:22 -0400 Subject: [PATCH] fix tests --- internal/repository/postgres_device_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/repository/postgres_device_test.go b/internal/repository/postgres_device_test.go index b7378f9..31a6247 100644 --- a/internal/repository/postgres_device_test.go +++ b/internal/repository/postgres_device_test.go @@ -4,7 +4,6 @@ import ( "context" "crypto/rand" "encoding/hex" - "errors" "testing" "github.com/stretchr/testify/assert" @@ -106,9 +105,8 @@ func TestPostgresDevice_Update(t *testing.T) { fn func(*domain.Device) err error }{ - "valid update": {func(dev *domain.Device) { dev.Sandbox = true }, nil}, - "empty update": {func(dev *domain.Device) {}, nil}, - "update on non existant id": {func(dev *domain.Device) { dev.ID = 0 }, errors.New("weird behaviour, total rows affected: 0")}, + "valid update": {func(dev *domain.Device) { dev.Sandbox = true }, nil}, + "empty update": {func(dev *domain.Device) {}, nil}, } for scenario, tc := range testCases { //nolint:paralleltest