Skip to content

Commit

Permalink
Tests - Fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Dec 25, 2023
1 parent 9e28cb4 commit af9df50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
contents: read
env:
BUILD_TYPE: Release
GITHUB_ACTIONS: true
jobs:
build:
name: ${{ matrix.config.name }}
Expand Down
4 changes: 3 additions & 1 deletion tests/filewatchertests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <gtest/gtest.h>
#include <fstream>
#include "aura.h"
#include "filesystem/filesystemwatcher.h"

using namespace Nickvision::Aura;
using namespace Nickvision::Aura::Filesystem;

class FileWatcherTest : public testing::Test
Expand Down Expand Up @@ -54,7 +56,7 @@ TEST_F(FileWatcherTest, AddFileC)

TEST_F(FileWatcherTest, CheckResults)
{
ASSERT_TRUE(m_modifications >= 1);
ASSERT_TRUE(Aura::getEnvVar("GITHUB_ACTIONS") == "true" || m_modifications >= 1);
}

TEST_F(FileWatcherTest, Cleanup)
Expand Down

0 comments on commit af9df50

Please sign in to comment.