From 5cfca4ca67375b74ea065e8fe2d359350d0cd7c5 Mon Sep 17 00:00:00 2001 From: Nathan Villaescusa Date: Mon, 18 Mar 2024 15:32:02 -0700 Subject: [PATCH] Move expectedChanged --- lib/rdbms/primary_key/primary_keys_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rdbms/primary_key/primary_keys_test.go b/lib/rdbms/primary_key/primary_keys_test.go index d1354dac..8ce829b1 100644 --- a/lib/rdbms/primary_key/primary_keys_test.go +++ b/lib/rdbms/primary_key/primary_keys_test.go @@ -121,9 +121,9 @@ func TestKeys_UpdateStartingValue(t *testing.T) { {Name: "Key1", StartingValue: "Start1", EndingValue: "End1"}, {Name: "Key2", StartingValue: 2, EndingValue: 2}, }, - expectedChanged: false, keyName: "Key1", startingVal: "Start1", + expectedChanged: false, expectedKeys: []Key{ {Name: "Key1", StartingValue: "Start1", EndingValue: "End1"}, {Name: "Key2", StartingValue: 2, EndingValue: 2}, @@ -134,9 +134,9 @@ func TestKeys_UpdateStartingValue(t *testing.T) { keys: []Key{ {Name: "Key1", StartingValue: "Start1", EndingValue: "End1"}, }, - expectedChanged: true, keyName: "Key1", startingVal: startVal2, + expectedChanged: true, expectedKeys: []Key{ {Name: "Key1", StartingValue: "Start2", EndingValue: "End1"}, },