Ideally, you should buy a new pair of running shoes about three weeks before your race and do several short runs and one longer run in them.