From e9ffa83d9418f0c6b8cacd910c67e515ec1dbfd8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Grzegorz=20Brzezi=C5=84ski?= <grzegorz.brzezinski@intel.com>
Date: Wed, 13 Mar 2019 16:29:33 +0100
Subject: [PATCH] test: fix pmempool_check test

---
 src/test/pmempool_check/TEST16.PS1 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/test/pmempool_check/TEST16.PS1 b/src/test/pmempool_check/TEST16.PS1
index ba1bba767..da6c13646 100644
--- a/src/test/pmempool_check/TEST16.PS1
+++ b/src/test/pmempool_check/TEST16.PS1
@@ -1,5 +1,5 @@
 #
-# Copyright 2016-2018, Intel Corporation
+# Copyright 2016-2019, Intel Corporation
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -63,6 +63,12 @@ $file.LastWriteTime=$past
 
 expect_abnormal_exit $PMEMPOOL check -v $POOLSET >> $LOG
 expect_abnormal_exit $PMEMPOOL check -vry $POOLSET >> $LOG
+
+# To achieve different checksum, file creation time and file modification time,
+# have to be different. The precision of file modification time equals 1 second
+# on Windows OS. File modification time is updated during execution
+# 'pmempool check' command. That is why the test waits for 1 second.
+Start-Sleep -s 1
 expect_normal_exit $PMEMPOOL check -vrya $POOLSET >> $LOG
 expect_normal_exit $PMEMPOOL info $POOLSET >> $null
 
-- 
GitLab