@@ -17,7 +17,7 @@ func TestNewRequest(t *testing.T) {
1717 prev := Props {}
1818 curr := Props {}
1919
20- req := NewRequest ("foo" , nil , rctx , nil , []byte (`{"color": "red"}` ), []byte (`{"color": "green"}` ))
20+ req := NewRequest ("foo" , nil , rctx , nil , []byte (`{"color": "red"}` ), []byte (`{"color": "green"}` ), nil )
2121
2222 if err := req .UnmarshalPrevious (& prev ); err != nil {
2323 t .Fatalf ("Unable to unmarshal props: %v" , err )
@@ -43,7 +43,7 @@ func TestNewRequest(t *testing.T) {
4343
4444 t .Run ("ResourceProps" , func (t * testing.T ) {
4545 t .Run ("Invalid Body" , func (t * testing.T ) {
46- req := NewRequest ("foo" , nil , rctx , nil , []byte (`` ), []byte (`` ))
46+ req := NewRequest ("foo" , nil , rctx , nil , []byte (`` ), []byte (`` ), nil )
4747
4848 invalid := struct {
4949 Color * int `json:"color"`
@@ -61,7 +61,7 @@ func TestNewRequest(t *testing.T) {
6161 })
6262
6363 t .Run ("Invalid Marshal" , func (t * testing.T ) {
64- req := NewRequest ("foo" , nil , rctx , nil , []byte (`{"color": "ref"}` ), []byte (`---BAD JSON---` ))
64+ req := NewRequest ("foo" , nil , rctx , nil , []byte (`{"color": "ref"}` ), []byte (`---BAD JSON---` ), nil )
6565
6666 var invalid Props
6767
@@ -79,7 +79,7 @@ func TestNewRequest(t *testing.T) {
7979
8080 t .Run ("PreviousResourceProps" , func (t * testing.T ) {
8181 t .Run ("Invalid Marshal" , func (t * testing.T ) {
82- req := NewRequest ("foo" , nil , rctx , nil , []byte (`---BAD JSON---` ), []byte (`{"color": "green"}` ))
82+ req := NewRequest ("foo" , nil , rctx , nil , []byte (`---BAD JSON---` ), []byte (`{"color": "green"}` ), nil )
8383
8484 var invalid Props
8585
0 commit comments