Skip to content

Commit 83761e6

Browse files
committed
tabs and spaces and such
1 parent c02fc35 commit 83761e6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

internal/postgres/reconcile_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ 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
129-
current=$(cat /proc/$pid/oom_score_adj 2>/dev/null || echo \"\")
130-
if [ \"$current\" != \"-900\" ]; then
131-
echo \"adjusting oom score for pid $pid\"
132-
echo -900 > /proc/$pid/oom_score_adj
133-
fi
134-
done
135-
136-
sleep 30
137-
done" > /oom-fixer.sh && chmod +x /oom-fixer.sh
138-
- /oom-fixer.sh & /usr/bin/patroni
139-
env:
127+
- command:
128+
- echo "for pid in $(pgrep -f \"/usr/pgsql-16/bin/postgres\"); do
129+
current=$(cat /proc/$pid/oom_score_adj 2>/dev/null || echo \"\")
130+
if [ \"$current\" != \"-900\" ]; then
131+
echo \"adjusting oom score for pid $pid\"
132+
echo -900 > /proc/$pid/oom_score_adj
133+
fi
134+
done
135+
136+
sleep 30
137+
done" > /oom-fixer.sh && chmod +x /oom-fixer.sh
138+
- /oom-fixer.sh & /usr/bin/patroni
139+
env:
140140
- name: PGDATA
141141
value: /pgdata/pg11
142142
- name: PGHOST

0 commit comments

Comments
 (0)