You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2019/07/30 22:14:58 UTC

[avro] branch branch-1.9 updated: AVRO-2489 - make sure the appropriate "sleep" is imported and used

This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch branch-1.9
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.9 by this push:
     new 8b420b3  AVRO-2489 - make sure the appropriate "sleep" is imported and used
8b420b3 is described below

commit 8b420b3a4121d0a6911f177281f976307279a372
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Tue Jul 30 18:14:03 2019 -0400

    AVRO-2489 - make sure the appropriate "sleep" is imported and used
---
 lang/c++/test/DataFileTests.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lang/c++/test/DataFileTests.cc b/lang/c++/test/DataFileTests.cc
index 86248c9..4f94d80 100644
--- a/lang/c++/test/DataFileTests.cc
+++ b/lang/c++/test/DataFileTests.cc
@@ -23,6 +23,9 @@
 #include <boost/filesystem.hpp>
 #include <boost/shared_ptr.hpp>
 
+#include <thread>
+#include <chrono>
+
 #include <sstream>
 
 #include "DataFile.hh"
@@ -589,7 +592,7 @@ public:
         }
         {
             avro::DataFileReader<ComplexInteger> reader(filename, dschema);
-            sleep(1);
+            std::this_thread::sleep_for(std::chrono::seconds(1));
             std::vector<int64_t> found;
             ComplexInteger record;
             while (reader.read(record)) {