Skip to content

Commit 57cad00

Browse files
committed
Fix tests
1 parent 1b81236 commit 57cad00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/sanityTesting.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install wheel
2828
pip install .
29+
sudo apt-get install x11-utils
2930
- name: Run headless tests
3031
uses: GabrielBB/xvfb-action@v1
3132
with:

p5/visualTests/sanityTests/2DSanityTests/test4.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from p5 import *
22

3+
def setup():
4+
size(640, 360)
5+
36
def draw():
47

58
if frame_count > 30:
69
exit()
710
# Sets the screen to be 640 pixels wide and 360 pixels high
8-
size(640, 360)
911

1012
# Set the background to black and turn off the fill color
1113
background(0)

0 commit comments

Comments
 (0)