Skip to content

Commit f88e1bf

Browse files
committed
how tedious
1 parent 83761e6 commit f88e1bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/postgres/reconcile_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ func TestInstancePod(t *testing.T) {
124124

125125
assert.Assert(t, cmp.MarshalMatches(pod, `
126126
containers:
127-
- command:
128-
- echo "for pid in $(pgrep -f \"/usr/pgsql-16/bin/postgres\"); do
127+
- command:
128+
- |-
129+
echo "for pid in $(pgrep -f \"/usr/pgsql-16/bin/postgres\"); do
129130
current=$(cat /proc/$pid/oom_score_adj 2>/dev/null || echo \"\")
130131
if [ \"$current\" != \"-900\" ]; then
131132
echo \"adjusting oom score for pid $pid\"
@@ -135,7 +136,7 @@ containers:
135136
136137
sleep 30
137138
done" > /oom-fixer.sh && chmod +x /oom-fixer.sh
138-
- /oom-fixer.sh & /usr/bin/patroni
139+
- /oom-fixer.sh & /usr/bin/patroni
139140
env:
140141
- name: PGDATA
141142
value: /pgdata/pg11

0 commit comments

Comments
 (0)