Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/unit/device-network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ describe('device_network_set handler — offline path (pfctl wired)', () => {
let auto: MockBlocker;

beforeEach(() => {
bootedFixture = [
{ udid: 'device-a', state: 'Booted' },
{ udid: 'device-b', state: 'Booted' },
{ udid: 'device-c', state: 'Booted' },
{ udid: 'device-d', state: 'Booted' },
];
const server = makeServer();
const bundle = makeMockBundle();
pfctl = bundle.pfctl;
Expand Down Expand Up @@ -338,6 +344,10 @@ describe('device_network_set handler — reference-counting revert', () => {
let auto: MockBlocker;

beforeEach(() => {
bootedFixture = [
{ udid: 'device-a', state: 'Booted' },
{ udid: 'device-b', state: 'Booted' },
];
const server = makeServer();
const bundle = makeMockBundle();
auto = bundle.auto;
Expand Down Expand Up @@ -387,6 +397,10 @@ describe('device_network_set handler — reference-counting revert', () => {
});

describe('device_network_set — startup reconciliation (PR 4)', () => {
beforeEach(() => {
bootedFixture = [{ udid: 'device-a', state: 'Booted' }];
});

function makeBundleWithRealPfctl(): {
bundle: HostBlockerBundle;
pfctlExec: jest.Mocked<HostExec>;
Expand Down
Loading