From 3e359aaeda8b6ae45c3b794cdead4625fc8f5a01 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 19 Oct 2018 17:13:32 +0200 Subject: [PATCH] zfs: fixup 6fcf0635a58f7087dd77c7f48d6629c5ec3086ae: broken test --- zfs/zfs_test.go | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/zfs/zfs_test.go b/zfs/zfs_test.go index d672117..cc0f4c6 100644 --- a/zfs/zfs_test.go +++ b/zfs/zfs_test.go @@ -138,6 +138,7 @@ size 10518512 name: "fullSend", in: fullSend, exp: &DrySendInfo{ Type: DrySendTypeFull, + Filesystem: "zroot/test/a", From: "", To: "zroot/test/a@1", SizeEstimate: 5389768, @@ -147,6 +148,7 @@ size 10518512 name: "incSend", in: incSend, exp: &DrySendInfo{ Type: DrySendTypeIncremental, + Filesystem: "zroot/test/a", From: "zroot/test/a@1", To: "zroot/test/a@2", SizeEstimate: 5383936, @@ -156,6 +158,7 @@ size 10518512 name: "incSendBookmark", in: incSendBookmark, exp: &DrySendInfo{ Type: DrySendTypeIncremental, + Filesystem: "zroot/test/a", From: "zroot/test/a#1", To: "zroot/test/a@2", SizeEstimate: 5383312, @@ -163,18 +166,21 @@ size 10518512 }, { name: "incNoToken", in: incNoToken, - //exp: &DrySendInfo{ - // Type: DrySendTypeIncremental, - // From: "1", // yes, this is actually correct on ZoL 0.7.11 - // To: "zroot/test/a@2", - // SizeEstimate: 10511856, - //}, - expErr: true, + exp: &DrySendInfo{ + Type: DrySendTypeIncremental, + Filesystem: "zroot/test/a", + // as can be seen in the string incNoToken, + // we cannot infer whether the incremental source is a snapshot or bookmark + From: "1", // yes, this is actually correct on ZoL 0.7.11 + To: "zroot/test/a@2", + SizeEstimate: 10511856, + }, }, { name: "fullNoToken", in: fullNoToken, exp: &DrySendInfo{ Type: DrySendTypeFull, + Filesystem: "zroot/test/a", From: "", To: "zroot/test/a@3", SizeEstimate: 10518512,