As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 25bef619 authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Small formatting improvement

parent 477e92d7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -205,6 +205,7 @@ func readStatusArgsAndTextData(t *testing.T, pl *pktline.Pktline) (status string
// Read status.
status, l, err := pl.ReadPacketTextWithLength()
require.NoError(t, err)
switch l {
case 0:
require.Fail(t, "Expected text, got flush packet")
Loading
Loading
@@ -217,6 +218,7 @@ func readStatusArgsAndTextData(t *testing.T, pl *pktline.Pktline) (status string
for !end {
arg, l, err := pl.ReadPacketTextWithLength()
require.NoError(t, err)
switch l {
case 0:
return status, args, nil
Loading
Loading
@@ -232,6 +234,7 @@ func readStatusArgsAndTextData(t *testing.T, pl *pktline.Pktline) (status string
for !end {
datum, l, err := pl.ReadPacketTextWithLength()
require.NoError(t, err)
switch l {
case 0:
end = true
Loading
Loading
@@ -241,6 +244,7 @@ func readStatusArgsAndTextData(t *testing.T, pl *pktline.Pktline) (status string
data = append(data, datum)
}
}
return status, args, data
}
Loading
Loading
@@ -460,8 +464,9 @@ func TestLfsTransferListLock(t *testing.T) {
}
func setup(t *testing.T, keyId string, repo string, op string) (string, *Command, *pktline.Pktline, *io.PipeReader) {
gitalyAddress, _ := testserver.StartGitalyServer(t, "unix")
var url string
gitalyAddress, _ := testserver.StartGitalyServer(t, "unix")
requests := []testserver.TestRequestHandler{
{
Path: "/api/v4/internal/allowed",
Loading
Loading
@@ -593,6 +598,7 @@ func setup(t *testing.T, keyId string, repo string, op string) (string, *Command
},
},
}
url = testserver.StartHttpServer(t, requests)
inputSource, inputSink := io.Pipe()
Loading
Loading
@@ -605,5 +611,6 @@ func setup(t *testing.T, keyId string, repo string, op string) (string, *Command
ReadWriter: &readwriter.ReadWriter{ErrOut: errorSink, Out: outputSink, In: inputSource},
}
pl := pktline.NewPktline(outputSource, inputSink)
return url, cmd, pl, errorSource
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment