File tree Expand file tree Collapse file tree
score-server/pkg/fetch-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import (
77
88func 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 )
Original file line number Diff line number Diff 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}
3131fi
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
You can’t perform that action at this time.
0 commit comments