reactjs – Code not working after redux function in axios call

I’m having trouble with redux/axios. I what to change the store ater an axios request is successful, and after the store change I want to change the application state. I expected the code to get to my function but that does not happen, and I’m not sure why! Is redux async? if so how can I make a sync call? (Left some code bellow)

 axios.post(url,{
            "system":system,
        })
        .then(res => {
          this.props.setTest(this.test_data) #code does not follow this line, no state is set
          this.setState({
            test_data:res,
            redirect:true
          })
        })
        .catch((error)=>{
          if(error.response){
              if(error.response.data("Error")){
                  console.log("There was an error fetching the test")
              }
          }
      })

Thanks fot the help!