From ff784347accefb6285db3c4f512409bdea7313a7 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Thu, 28 Mar 2024 17:35:29 -0700 Subject: [PATCH] test: show that there's a second auction running --- a3p-integration/package.json | 3 ++- .../priceFeed-follower-auction.test.js | 7 ++--- a3p-integration/yarn.lock | 26 +++++++++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/a3p-integration/package.json b/a3p-integration/package.json index 025fccf678e0..2e620c9fffad 100644 --- a/a3p-integration/package.json +++ b/a3p-integration/package.json @@ -12,7 +12,8 @@ "doctor": "yarn synthetic-chain doctor" }, "dependencies": { - "@agoric/synthetic-chain": "^0.0.7" + "@agoric/synthetic-chain": "^0.0.7", + "@types/better-sqlite3": "^7.6.9" }, "packageManager": "yarn@4.1.0", "license": "Apache-2.0" diff --git a/a3p-integration/proposals/a:upgrade-next/priceFeed-follower-auction.test.js b/a3p-integration/proposals/a:upgrade-next/priceFeed-follower-auction.test.js index 45f80269495d..7ac4865b2bf4 100644 --- a/a3p-integration/proposals/a:upgrade-next/priceFeed-follower-auction.test.js +++ b/a3p-integration/proposals/a:upgrade-next/priceFeed-follower-auction.test.js @@ -1,7 +1,8 @@ import test from 'ava'; -import { executeCommand } from '@agoric/synthetic-chain'; +import { getDetailsMatchingVats } from './vatDetails.js'; test('new auction vat', async t => { - const data = await executeCommand('pgrep', ['-cf', 'auctioneer']); - t.is(data, '2'); + const details = await getDetailsMatchingVats('auctioneer'); + // This query matches both the auction and its governor + t.true(Object.keys(details).length > 2); }); diff --git a/a3p-integration/yarn.lock b/a3p-integration/yarn.lock index 3223e3fb0b5c..c21cb9271a9e 100644 --- a/a3p-integration/yarn.lock +++ b/a3p-integration/yarn.lock @@ -69,6 +69,24 @@ __metadata: languageName: node linkType: hard +"@types/better-sqlite3@npm:^7.6.9": + version: 7.6.9 + resolution: "@types/better-sqlite3@npm:7.6.9" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/7d77add3993968982374cd73586a100fc5b9c29570a167b5798a415744983041d9ae3dcbdfd83fcf807247b777e3b8dc4e045fb7dae4a3d8484c9366ab371680 + languageName: node + linkType: hard + +"@types/node@npm:*": + version: 20.11.30 + resolution: "@types/node@npm:20.11.30" + dependencies: + undici-types: "npm:~5.26.4" + checksum: 10c0/867cfaf969c6d8850d8d7304e7ab739898a50ecb1395b61ff2335644f5f48d7a46fbc4a14cee967aed65ec134b61a746edae70d1f32f11321ccf29165e3bc4e6 + languageName: node + linkType: hard + "abbrev@npm:^2.0.0": version: 2.0.0 resolution: "abbrev@npm:2.0.0" @@ -973,6 +991,7 @@ __metadata: resolution: "root-workspace-0b6124@workspace:." dependencies: "@agoric/synthetic-chain": "npm:^0.0.7" + "@types/better-sqlite3": "npm:^7.6.9" languageName: unknown linkType: soft @@ -1190,6 +1209,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~5.26.4": + version: 5.26.5 + resolution: "undici-types@npm:5.26.5" + checksum: 10c0/bb673d7876c2d411b6eb6c560e0c571eef4a01c1c19925175d16e3a30c4c428181fb8d7ae802a261f283e4166a0ac435e2f505743aa9e45d893f9a3df017b501 + languageName: node + linkType: hard + "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0"