From 6b194410c52e928e4143f46832786e87403698b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ezr?= Date: Fri, 4 Dec 2020 00:52:31 +0100 Subject: [PATCH] Fix random test failures --- test/test_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index b5fb29d..ab2d458 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -3,6 +3,11 @@ require 'mocha/minitest' require 'smart_proxy_for_testing' +# initialize the logger prior testing +# it uses Dir.glob, that we want to stub in some tests +# if those tests run first, it throws unexpected invocation of Dir.glob +::Proxy::LogBuffer::Decorator.instance + module Minitest # Modifications to allow a 'test 'nameoftest' do' syntax class Test