Skip to content

Commit

Permalink
[tests] Mark a flaky test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Oct 7, 2021
1 parent 4c0d5c9 commit 9d2d206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/llvm/llvm_env_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import gym
import pytest
from flaky import flaky

import compiler_gym
from compiler_gym.compiler_env_state import (
Expand Down Expand Up @@ -75,6 +76,7 @@ def test_double_reset(env: LlvmEnv, always_send_benchmark_on_reset: bool):
assert env.in_episode


@flaky
def test_connection_dies_default_reward(env: LlvmEnv):
env.reward_space = "IrInstructionCount"
env.reset(benchmark="cbench-v1/crc32")
Expand All @@ -98,6 +100,7 @@ def test_connection_dies_default_reward(env: LlvmEnv):
assert reward == 2.5


@flaky
def test_connection_dies_default_reward_negated(env: LlvmEnv):
env.reward_space = "IrInstructionCount"
env.reset(benchmark="cbench-v1/crc32")
Expand Down

0 comments on commit 9d2d206

Please sign in to comment.