blob: 870c3157f7646e66a095f3afb0bf5a216c24936c [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT)
3
4from time import sleep
5
6from oeqa.core.case import OETestCase
7from oeqa.core.decorator.oetimeout import OETimeout
8
9class TimeoutTest(OETestCase):
10
11 @OETimeout(1)
12 def testTimeoutPass(self):
13 self.assertTrue(True, msg='How is this possible?')
14
15 @OETimeout(1)
16 def testTimeoutFail(self):
17 sleep(2)
18 self.assertTrue(True, msg='How is this possible?')