Skip to content

Commit

Permalink
chore: update test random ids
Browse files Browse the repository at this point in the history
  • Loading branch information
gulfaraz committed Jan 31, 2024
1 parent 329ad2d commit daa9e6e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions test/lib/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('list', async () => {
"default_value": null,
"enums": [],
"format": "int8",
"id": "16420.1",
"id": "16423.1",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -25,7 +25,7 @@ test('list', async () => {
"ordinal_position": 1,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
{
"check": null,
Expand All @@ -34,7 +34,7 @@ test('list', async () => {
"default_value": null,
"enums": [],
"format": "text",
"id": "16420.2",
"id": "16423.2",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -45,7 +45,7 @@ test('list', async () => {
"ordinal_position": 2,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
{
"check": null,
Expand All @@ -54,7 +54,7 @@ test('list', async () => {
"default_value": null,
"enums": [],
"format": "int8",
"id": "16420.3",
"id": "16423.3",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -65,7 +65,7 @@ test('list', async () => {
"ordinal_position": 3,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
],
"comment": null,
Expand Down Expand Up @@ -111,7 +111,7 @@ test('retrieve', async () => {
"default_value": null,
"enums": [],
"format": "int8",
"id": "16420.1",
"id": "16423.1",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -122,7 +122,7 @@ test('retrieve', async () => {
"ordinal_position": 1,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
{
"check": null,
Expand All @@ -131,7 +131,7 @@ test('retrieve', async () => {
"default_value": null,
"enums": [],
"format": "text",
"id": "16420.2",
"id": "16423.2",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -142,7 +142,7 @@ test('retrieve', async () => {
"ordinal_position": 2,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
{
"check": null,
Expand All @@ -151,7 +151,7 @@ test('retrieve', async () => {
"default_value": null,
"enums": [],
"format": "int8",
"id": "16420.3",
"id": "16423.3",
"identity_generation": null,
"is_generated": false,
"is_identity": false,
Expand All @@ -162,7 +162,7 @@ test('retrieve', async () => {
"ordinal_position": 3,
"schema": "public",
"table": "todos_view",
"table_id": 16420,
"table_id": 16423,
},
],
"comment": null,
Expand Down
10 changes: 5 additions & 5 deletions test/server/indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('list indexes', async () => {
"class": "3124",
"collation": "0",
"comment": null,
"id": 16396,
"id": 16399,
"index_attributes": [
{
"attribute_name": "id",
Expand All @@ -41,14 +41,14 @@ test('list indexes', async () => {
"number_of_key_attributes": 1,
"options": "0",
"schema": "public",
"table_id": 16390,
"table_id": 16393,
}
`
)
})

test('retrieve index', async () => {
const res = await app.inject({ method: 'GET', path: '/indexes/16396' })
const res = await app.inject({ method: 'GET', path: '/indexes/16399' })
const index = res.json<PostgresIndex>()
expect(index).toMatchInlineSnapshot(
`
Expand All @@ -58,7 +58,7 @@ test('retrieve index', async () => {
"class": "3124",
"collation": "0",
"comment": null,
"id": 16396,
"id": 16399,
"index_attributes": [
{
"attribute_name": "id",
Expand All @@ -82,7 +82,7 @@ test('retrieve index', async () => {
"number_of_key_attributes": 1,
"options": "0",
"schema": "public",
"table_id": 16390,
"table_id": 16393,
}
`
)
Expand Down

0 comments on commit daa9e6e

Please sign in to comment.