Skip to content

Commit 11c5b6a

Browse files
committed
RHINENG-21214: fix TestStoreOrUpdateSysPlatform
1 parent da2cd94 commit 11c5b6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

listener/upload_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func TestStoreOrUpdateSysPlatform(t *testing.T) {
354354
var oldCount, newCount int
355355
var nextval, currval int
356356
database.DB.Model(&models.SystemPlatform{}).Select("count(*)").Find(&oldCount)
357-
database.DB.Raw("select nextval('system_platform_id_seq')").Find(&nextval)
357+
database.DB.Raw("select nextval('system_inventory_id_seq')").Find(&nextval)
358358

359359
colsToUpdate := []string{"vmaas_json", "json_checksum", "reporter_id", "satellite_managed"}
360360
json := "this_is_json"
@@ -406,7 +406,7 @@ func TestStoreOrUpdateSysPlatform(t *testing.T) {
406406

407407
// make sure we are not creating gaps in id sequences
408408
database.DB.Model(&models.SystemPlatform{}).Select("count(*)").Find(&newCount)
409-
database.DB.Raw("select currval('system_platform_id_seq')").Find(&currval)
409+
database.DB.Raw("select currval('system_inventory_id_seq')").Find(&currval)
410410
countInc := newCount - oldCount
411411
maxInc := currval - nextval
412412
assert.Equal(t, countInc, maxInc)

0 commit comments

Comments
 (0)