avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] branch master updated: AVRO-2489 - make sure the appropriate "sleep" is imported and used
Date Tue, 30 Jul 2019 22:14:28 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit f18d76af62d981bee21778af8872c736418f626e
Author: Daniel Kulp <dkulp@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)) {


Mime
View raw message