Skip to content

Commit c35f1b2

Browse files
authored
Create a new zmachine light instance before each test and add flist & network to it (#4475)
1 parent b091b4f commit c35f1b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/grid_client/tests/modules/zmachine_light.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const networkInterface = new ZNetworkInterface();
1818
const disks = new Mount();
1919

2020
beforeEach(() => {
21+
zmachineLight = new ZmachineLight();
2122
computeCapacity.cpu = 1;
2223
computeCapacity.memory = 256 * 1024 ** 2;
2324

@@ -36,7 +37,8 @@ beforeEach(() => {
3637
disks.name = "zdisk";
3738
disks.mountpoint = "/mnt/data";
3839

39-
flist: FLISTS.MICROVMS_UBUNTU_22.flist, (zmachineLight.network = network);
40+
zmachineLight.flist = FLISTS.MICROVMS_UBUNTU_22.flist;
41+
zmachineLight.network = network;
4042
zmachineLight.size = rootfs_size * 1024 ** 3;
4143
zmachineLight.mounts = [disks];
4244
zmachineLight.entrypoint = FLISTS.MICROVMS_UBUNTU_24.entryPoint;

0 commit comments

Comments
 (0)