From b787b992e1872368904d026fbf1b0855706f7605 Mon Sep 17 00:00:00 2001 From: Mahesh Binzer-Panchal Date: Tue, 26 Mar 2024 16:37:45 +0000 Subject: [PATCH] Fix snapshot for missing file --- .../nf-core/genomescope2/tests/main.nf.test | 2 +- .../genomescope2/tests/main.nf.test.snap | 38 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/nf-core/genomescope2/tests/main.nf.test b/modules/nf-core/genomescope2/tests/main.nf.test index 63d7d169f0e4..677e4262a8a2 100644 --- a/modules/nf-core/genomescope2/tests/main.nf.test +++ b/modules/nf-core/genomescope2/tests/main.nf.test @@ -53,7 +53,7 @@ nextflow_process { { assert snapshot(process.out.model).match("model") }, { assert snapshot(process.out.summary).match("summary") }, { assert snapshot(process.out.lookup_table).match("lookup_table") }, - { assert snapshot(process.out.fitted_histogram_png).match("fitted_histogram_png") }, + { assert file(process.out.fitted_histogram_png[0][1]).exists() }, // PNG md5sum mismatches using conda { assert snapshot(process.out.versions).match("versions") } ) } diff --git a/modules/nf-core/genomescope2/tests/main.nf.test.snap b/modules/nf-core/genomescope2/tests/main.nf.test.snap index 554bbbe78a4f..4d0800fd6ffc 100644 --- a/modules/nf-core/genomescope2/tests/main.nf.test.snap +++ b/modules/nf-core/genomescope2/tests/main.nf.test.snap @@ -15,7 +15,7 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-03-26T16:15:14.844644474" + "timestamp": "2024-03-26T16:43:15.407365039" }, "lookup_table": { "content": [ @@ -33,7 +33,7 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-03-26T16:15:14.851325053" + "timestamp": "2024-03-26T16:43:15.413781389" }, "versions": { "content": [ @@ -45,19 +45,7 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-03-26T16:15:14.868244852" - }, - "fitted_histogram_png": { - "content": [ - [ - - ] - ], - "meta": { - "nf-test": "0.8.4", - "nextflow": "23.10.1" - }, - "timestamp": "2024-03-26T16:15:14.860803112" + "timestamp": "2024-03-26T16:43:15.422588239" }, "bacteroides_fragilis - fastq - stub": { "content": [ @@ -126,13 +114,25 @@ ] ], "7": [ - + [ + { + "id": "test", + "single_end": true + }, + "test_fitted_hist.png:md5,d41d8cd98f00b204e9800998ecf8427e" + ] ], "8": [ "versions.yml:md5,d9a07fd689e0386675370db0995227c3" ], "fitted_histogram_png": [ - + [ + { + "id": "test", + "single_end": true + }, + "test_fitted_hist.png:md5,d41d8cd98f00b204e9800998ecf8427e" + ] ], "linear_plot_png": [ [ @@ -206,7 +206,7 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-03-26T16:15:30.732166316" + "timestamp": "2024-03-26T16:43:32.293155073" }, "model": { "content": [ @@ -224,6 +224,6 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-03-26T16:15:14.830008914" + "timestamp": "2024-03-26T16:43:15.39496668" } } \ No newline at end of file