Skip to content

Commit bf23fb5

Browse files
committed
Fix some leftover code I had uncommited for Linux workshop
1 parent 6409167 commit bf23fb5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

linux/score-server/pkg/fetch-server/serve_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import (
77

88
func TestRankTeams(t *testing.T) {
99
data := []teamData{
10-
{"Team 1", 100},
11-
{"Team 3", 300},
12-
{"Team 2", 200},
10+
{"Team 1", 100, 3},
11+
{"Team 3", 300, 1},
12+
{"Team 2", 200, 2},
1313
}
1414

1515
want := []teamData{
16-
{"Team 3", 300},
17-
{"Team 2", 200},
18-
{"Team 1", 100},
16+
{"Team 3", 300, 1},
17+
{"Team 2", 200, 2},
18+
{"Team 1", 100, 3},
1919
}
2020

2121
got := rankTeams(data)

linux/scripts/init-db.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ if [[ ! -f /etc/postgresql/"${postgres_major_version}"/main/pg_hba.conf.bak ]];
3030
mv /etc/postgresql/"${postgres_major_version}"/main/pg_hba.conf{,.bak}
3131
fi
3232
{
33-
printf 'local all all trust\n'
34-
printf 'host all all 0.0.0.0/0 trust\n'
33+
printf 'local all all trust\n'
34+
printf 'host all all 0.0.0.0/0 trust\n'
3535
} > /etc/postgresql/"${postgres_major_version}"/main/pg_hba.conf
3636

3737
# Configure postgres to listen on non-localhost

0 commit comments

Comments
 (0)