This repository was archived by the owner on Jan 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ func TestParseFile(t *testing.T) {
118
118
}
119
119
120
120
func TestParseReaderHeredocs (t * testing.T ) {
121
- dockerfile := `RUN <<EOF
121
+ dockerfile := `RUN 3 <<EOF
122
122
source $HOME/.bashrc && echo $HOME
123
123
echo "Hello" >> /hello
124
124
echo "World!" >> /hello
137
137
Heredocs : []Heredoc {
138
138
Heredoc {
139
139
Name : "EOF" ,
140
- FileDescriptor : 0 ,
140
+ FileDescriptor : 3 ,
141
141
Content : "source $HOME/.bashrc && echo $HOME\n echo \" Hello\" >> /hello\n echo \" World!\" >> /hello\n " },
142
142
},
143
143
},
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def test_parse_file_success():
115
115
116
116
def test_heredoc_string_success ():
117
117
test_string = (
118
- 'RUN <<EOF\n '
118
+ 'RUN 3 <<EOF\n '
119
119
'source $HOME/.bashrc && echo $HOME\n '
120
120
'echo "Hello" >> /hello\n '
121
121
'echo "World!" >> /hello\n '
@@ -137,7 +137,7 @@ def test_heredoc_string_success():
137
137
content = 'source $HOME/.bashrc && echo $HOME\n '
138
138
'echo "Hello" >> /hello\n '
139
139
'echo "World!" >> /hello\n ' ,
140
- file_descriptor = 0 ,
140
+ file_descriptor = 3 ,
141
141
),
142
142
),
143
143
),
You can’t perform that action at this time.
0 commit comments