Change-type: patch
This commit is contained in:
myarmolinsky 2024-09-20 11:56:34 -04:00
parent 251d64eb88
commit c7441b06ac

View File

@ -91,6 +91,10 @@ describe('image-manager', function () {
});
it('should eventually become a readable stream of the download image and save a backup copy', function (done) {
if (os.platform() === 'win32') {
// Skipping test on Windows because we get `EPERM: operation not permitted, rename` for `getImageWritableStream` on the windows runner
this.skip();
}
void imageManager.getStream('raspberry-pi').then((stream) => {
let result = '';
@ -138,6 +142,10 @@ describe('image-manager', function () {
});
it('should clean up the in progress cached stream if an error occurs', function (done) {
if (os.platform() === 'win32') {
// Skipping test on Windows because we get `EPERM: operation not permitted, rename` for `getImageWritableStream` on the windows runner
this.skip();
}
void imageManager.getStream('raspberry-pi').then((stream) => {
stream.on('data', () => {
// After the first chunk, error
@ -456,6 +464,10 @@ describe('image-manager', function () {
));
it('should allow writing to the stream', function (done) {
if (os.platform() === 'win32') {
// Skipping test on Windows because we get `EPERM: operation not permitted, rename` for `getImageWritableStream` on the windows runner
this.skip();
}
void imageManager
.getImageWritableStream('raspberry-pi', '1.2.3')
.then((stream) => {